<!--
<div class="widget-header">
	<h4 class="lighter smaller">
		<i class="icon-text-width"></i>
		Tab Input
	</h4>
	<div class="widget-toolbar no-border">
		<ul id="recent-tab" class="nav nav-tabs">
			<li class="">
				<a href="#task-tab" data-toggle="tab">Tasks</a>
			</li>
			<li class="">
				<a href="#member-tab" data-toggle="tab">Members</a>
			</li>
			<li class="active">
				<a href="#comment-tab" data-toggle="tab">Comments</a>
			</li>
		</ul>
	</div>
</div>
-->
<form id="forminputdata" action="<?= site_url() ?>/home/fPUpdateData" class="form-horizontal" role="form" method="post">
<div class="col-xs-12">
	<div id="recent-box" class="widget-box transparent">
		<div class="widget-header">
			<h4 class="lighter smaller">
				<i class="icon-text-width red "></i>
				<b>Isian data per-tab</b>
			</h4>
	
			<div class="widget-toolbar no-border">
				<ul id="recent-tab" class="nav nav-tabs">
					<li class="active">
						<a href="#datakaryawan-tab" data-toggle="tab">Data Karyawan</a>
					</li>
	
					<li class="">
						<a href="#datatunjangan-tab" data-toggle="tab">Data Tunjangan</a>
					</li>
	
					<li class="">
						<a href="#datakeluarga-tab" data-toggle="tab">Data Keluarga</a>
					</li>
					<li class="">
						<a href="#datastatuskerja-tab" data-toggle="tab">Data Status Kerja</a>
					</li>
					<li class="">
						<a href="#datagajikaryawan-tab" data-toggle="tab">Data Gaji Karyawan</a>
					</li>

				</ul>
			</div>
		</div>
	
		<div class="widget-body">
			<div class="widget-main padding-4">
				<div class="tab-content padding-8 overflow-visible">
					<div class="tab-pane active" id="datakaryawan-tab">
						<h4 class="smaller lighter green">
							<i class="icon-list"></i>
							<b>Data Karyawan</b>
						</h4>
						<input type="hidden" id="id" name="id" value="<?= $query[0]->id ?>" />
						<!--<form action="<?= site_url() ?>/home/fPSaveData" class="form-horizontal" role="form" method="post">-->
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="provinsi"> Provinsi </label>
							
								<div class="col-sm-3">
									<select id="provinsi" name="provinsi" class="form-control">		
										<option value="0"> Pilih Provinsi ...  </option>							
										<?php $provinsi = $queryprovinsi->result();foreach ($provinsi as $row) { ?>
											<option value="<?= $row->id_provinsi ?>"> <?= $row->nama_provinsi ?>  </option>
										<?php } ?>
									</select>
								</div>
							</div>		            

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="cabang"> Kantor Cabang * </label>
						
								<div class="col-sm-3">
									<select id="cabang" name="cabang" class="form-control">									
										<?php $kota = $querykota->result();foreach ($kota as $row) { ?>
											<option value="<?= $row->id_kota ?>"> <?= $row->nama_kota ?>  </option>
										<?php } ?>
									</select>
								</div>
							</div>
							
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="customer"> Customer * </label>
						
								<div class="col-sm-3">
									<select id="customer" name="customer" class="form-control">									
										<?php $customer = $querycustomer->result();foreach ($customer as $row) { ?>
											<option value="<?= $row->id_customer ?>"> <?= $row->nama_customer ?>  </option>
										<?php } ?>
									</select>
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="nik_customer"> No NIK Customer * </label>
						
								<div class="col-sm-9">
									<input type="text" name="nik_customer" id="nik_customer" placeholder="Nomor NIK Customer" class="col-xs-10 col-sm-5" value="<?= $query[0]->nik_customer ?>" />
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="nik_sjs"> No NIK SJS * </label>
						
								<div class="col-sm-9">
								<input type="text" name="nik_sjs" id="nik_sjs" placeholder="Nomor NIK SJS" class="col-xs-10 col-sm-5" value="<?= $query[0]->nik_sjs ?>" />
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="nama_kar"> Nama Lengkap * </label>
						
								<div class="col-sm-9">
									<input type="text" name="nama_kar" id="nama_kar" placeholder="Nama Lengkap Karyawan" class="col-xs-10 col-sm-5" value="<?= $query[0]->nama_kar ?>" />
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="jabatan"> Jabatan </label>
						
								<div class="col-sm-9">
									<input type="text" id="jabatan" name="jabatan" placeholder="Jabatan Karyawan" class="col-xs-10 col-sm-5" value="<?= $query[0]->jabatan ?>" />
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="departement"> Departemen </label>
						
								<div class="col-sm-9">
									<input type="text" id="departement" name="departement" placeholder="Departemen" class="col-xs-10 col-sm-5" value="<?= $query[0]->departement ?>" />
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="status_kar"> Status Karyawan </label>
						
								<div class="col-sm-9">
									<input type="text" id="status_kar" name="status_kar" placeholder="Status Karyawan" class="col-xs-10 col-sm-5" value="<?= $query[0]->status_kar ?>" />
								</div>
							</div>
							
							<div class="space-4"></div>
							<div class="hr hr-24"></div>
							<h4 class="smaller lighter blue">
								Joint Customer
								<br>
								<h6 class="smaller lighter blue">
								(Dimasukan awal joint dengan Customer / Joint divendors sebelumnya ( Kusus karyawan swing ), jika karyawan baru silakan masukan Joint pertama si SJS)
								</h6>
							</h4>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="joint_awal"> Awal joint customer / joint vendor sebelumnya</label>
						
								<div class="col-sm-3">
									<div class="input-group" >
										
										<input id="joint_awal" name="joint_awal" class="form-control date-picker" type="text" data-date-format="dd-mm-yyyy" value="<?php if ($query[0]->joint_awal == '1970-01-01') echo '';else echo date('d-m-Y', strtotime($query[0]->joint_awal)); ?>" >
										
										<span class="input-group-addon">
											<i class="icon-calendar bigger-110"></i>
										</span>
										
									</div>
								</div>
							</div>
							<!--
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="joint_akhir"> Akhir </label>
						
								<div class="col-sm-3">
									<div class="input-group" >
										
										<input id="joint_akhir" name="joint_akhir" class="form-control date-picker" type="text" data-date-format="dd-mm-yyyy" value="<?= date('d-m-Y', strtotime($query[0]->joint_akhir)) ?>" >
										
										<span class="input-group-addon">
											<i class="icon-calendar bigger-110"></i>
										</span>
										
									</div>
								</div>
							</div>
							-->
							<div class="space-4"></div>
							<div class="hr hr-24"></div>
							<h4 class="smaller lighter blue">
								Cuti
							</h4>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="total_cuti"> Total Cuti </label>
						
								<div class="col-sm-9">
									<input type="text" id="total_cuti" name="total_cuti" placeholder="Total Cuti" class="col-xs-10 col-sm-5" value="<?= $query[0]->total_cuti ?>" />
								</div>
							</div>
							
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="cuti_dipakai"> Cuti Yang Sudah Diambil </label>
						
								<div class="col-sm-9">
									<input type="text" id="cuti_dipakai" name="cuti_dipakai" placeholder="Cuti Yang Sudah Diambil" class="col-xs-10 col-sm-5" value="<?= $query[0]->cuti_dipakai ?>" />
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="sisa_cuti"> Sisa Cuti </label>
						
								<div class="col-sm-9">
									<input type="text" id="sisa_cuti" name="sisa_cuti" placeholder="Sisa Cuti" class="col-xs-10 col-sm-5" value="<?= $query[0]->sisa_cuti ?>" />
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="hr hr-24"></div>
							<h4 class="smaller lighter blue">
								Rekening
								<br>
								<h6 class="smaller lighter blue">
								(Tidak boleh ada tanda strip, koma, titik atau tanda lainnya pada nomor rekening)
								</h6>
							</h4>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="bank"> Bank </label>
						
								<div class="col-sm-9">
									<input type="text" id="bank" name="bank" placeholder="Nama Bank" class="col-xs-10 col-sm-5" value="<?= $query[0]->bank ?>" />
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="no_rekening"> No Rekening </label>
						
								<div class="col-sm-9">
									<input type="text" id="no_rekening" name="no_rekening" placeholder="No Rekening Bank" class="col-xs-10 col-sm-5" value="<?= $query[0]->no_rekening ?>" />
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="nama_rek"> Atas Nama </label>
						
								<div class="col-sm-9">
									<input type="text" id="nama_rek" name="nama_rek" placeholder="Nama Pemilik Rekening Bank" class="col-xs-10 col-sm-5" value="<?= $query[0]->nama_rek ?>" />
								</div>
							</div>
							<div class="hr hr-24"></div>
							
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="jenis_kelamin"> Jenis Kelamin </label>
						
								<div class="col-sm-3">
									<select id="jenis_kelamin" name="jenis_kelamin" class="form-control">
										<option value="Laki - laki"> Laki - laki </option>
										<option value="Perempuan">Perempuan</option>
									</select>
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="hr hr-24"></div>
							<h4 class="smaller lighter blue">
								Tempat dan Tanggal Lahir
							</h4>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="tempat_lahir"> Tempat </label>
						
								<div class="col-sm-9">
									<input type="text" id="tempat_lahir" name="tempat_lahir" placeholder="Tempat Lahir" class="col-xs-10 col-sm-5" value="<?= $query[0]->tempat_lahir ?>" />
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="tanggal_lahir"> Tanggal Lahir </label>
						
								<div class="col-sm-3">
									<div class="input-group" >
										
										<input id="tanggal_lahir" name="tanggal_lahir" class="form-control date-picker" type="text" data-date-format="dd-mm-yyyy" value="<?php if ($query[0]->tanggal_lahir == '1970-01-01') echo '';else echo date('d-m-Y', strtotime($query[0]->tanggal_lahir)); ?>" >
										
										<span class="input-group-addon">
											<i class="icon-calendar bigger-110"></i>
										</span>
										
									</div>
								</div>
							</div>
							<div class="hr hr-24"></div>
							
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="agama"> Agama </label>
						
								<div class="col-sm-9">
									<input type="text" id="agama" name="agama" placeholder="Agama" class="col-xs-10 col-sm-5" value="<?= $query[0]->agama ?>" />
								</div>
							</div>
							
							<div class="space-4"></div>
							<div class="hr hr-24"></div>
							<h4 class="smaller lighter blue">
								Alamat
							</h4>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="alamat_ktp"> Alamat KTP </label>
						
								<div class="col-sm-9">
									<input type="text" id="alamat_ktp" name="alamat_ktp" placeholder="Alamat KTP" class="col-xs-10 col-sm-5" value="<?= $query[0]->alamat_ktp ?>" />
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="rt"> RT </label>
						
								<div class="col-sm-9">
									<input type="text" id="rt" name="rt" placeholder="RT" class="col-xs-10 col-sm-5" value="<?= $query[0]->rt ?>" />
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="rw"> RW </label>
						
								<div class="col-sm-9">
									<input type="text" id="rw" name="rw" placeholder="RW" class="col-xs-10 col-sm-5" value="<?= $query[0]->rw ?>" />
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="kode_pos"> Kode Pos </label>
						
								<div class="col-sm-9">
									<input type="text" id="kode_pos" name="kode_pos" placeholder="Kode Pos" class="col-xs-10 col-sm-5" value="<?= $query[0]->kode_pos ?>" />
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="kecamatan"> Nama Kecamatan </label>
						
								<div class="col-sm-9">
									<input type="text" id="kecamatan" name="kecamatan" placeholder="Nama Desa" class="col-xs-10 col-sm-5" value="<?= $query[0]->kecamatan ?>" />
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="desa"> Nama Desa </label>
						
								<div class="col-sm-9">
									<input type="text" id="desa" name="desa" placeholder="Nama Desa" class="col-xs-10 col-sm-5" value="<?= $query[0]->desa ?>" />
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="kabupaten"> Kabupaten / Kotamadya </label>
						
								<div class="col-sm-9">
									<input type="text" id="kabupaten" name="kabupaten" placeholder="Nama Kabupaten / Kotamadya" class="col-xs-10 col-sm-5" value="<?= $query[0]->kabupaten ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="alamat_tinggal"> Alamat Tinggal (Jika tidak sesuai KTP) </label>
						
								<div class="col-sm-9">
									<input type="text" id="alamat_tinggal" name="alamat_tinggal" placeholder="Alamat Tinggal" class="col-xs-10 col-sm-5" value="<?= $query[0]->alamat_tinggal ?>" />
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="rt_tinggal"> RT </label>
						
								<div class="col-sm-9">
									<input type="text" id="rt_tinggal" name="rt_tinggal" placeholder="RT" class="col-xs-10 col-sm-5" value="<?= $query[0]->rt_tinggal ?>" />
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="rw_tinggal"> RW </label>
						
								<div class="col-sm-9">
									<input type="text" id="rw_tinggal" name="rw_tinggal" placeholder="RW" class="col-xs-10 col-sm-5" value="<?= $query[0]->rw_tinggal ?>" />
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="kode_pos_tinggal"> Kode Pos </label>
						
								<div class="col-sm-9">
									<input type="text" id="kode_pos_tinggal" name="kode_pos_tinggal" placeholder="Kode Pos" class="col-xs-10 col-sm-5" value="<?= $query[0]->kode_pos_tinggal ?>" />
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="kecamatan_tinggal"> Nama Kecamatan </label>
						
								<div class="col-sm-9">
									<input type="text" id="kecamatan_tinggal" name="kecamatan_tinggal" placeholder="Nama Desa" class="col-xs-10 col-sm-5" value="<?= $query[0]->kecamatan_tinggal ?>" />
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="desa_tinggal"> Nama Desa </label>
						
								<div class="col-sm-9">
									<input type="text" id="desa_tinggal" name="desa_tinggal" placeholder="Nama Desa" class="col-xs-10 col-sm-5" value="<?= $query[0]->desa_tinggal ?>" />
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="kabupaten_tinggal"> Kabupaten / Kotamadya </label>
						
								<div class="col-sm-9">
									<input type="text" id="kabupaten_tinggal" name="kabupaten_tinggal" placeholder="Nama Kabupaten / Kotamadya" class="col-xs-10 col-sm-5" value="<?= $query[0]->kabupaten_tinggal ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="hr hr-24"></div>
							<h4 class="smaller lighter blue">
								Telepon
								<br>
								<h6 class="smaller lighter blue">
								(masukan kode area / wilayah untuk nomor telepon)
								</h6>
							</h4>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="tel_rumah"> Rumah </label>
						
								<div class="col-sm-9">
									<input type="text" id="tel_rumah" name="tel_rumah" placeholder="Nomor Telepon Rumah" class="col-xs-10 col-sm-5" value="<?= $query[0]->tel_rumah ?>" />
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="tel_hp"> Ponsel </label>
						
								<div class="col-sm-9">
									<input type="text" id="tel_hp" name="tel_hp" placeholder="Nomor Telepon Ponsel" class="col-xs-10 col-sm-5" value="<?= $query[0]->tel_hp ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="tel_hp2"> Ponsel 2</label>
						
								<div class="col-sm-9">
									<input type="text" id="tel_hp2" name="tel_hp2" placeholder="Nomor Telepon Ponsel 2" class="col-xs-10 col-sm-5" value="<?= $query[0]->tel_hp2 ?>" />
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="tel_keluarga">  Nomor Telepon keluarga yang tidak serumah </label>
						
								<div class="col-sm-9">
									<input type="text" id="tel_keluarga" name="tel_keluarga" placeholder="Nomor Telepon Keluarga Terdekat Tidak Serumah" class="col-xs-10 col-sm-5" value="<?= $query[0]->tel_keluarga ?>" />
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="hub_keluarga"> Hubungan Keluarga </label>
						
								<div class="col-sm-9">
									<input type="text" id="hub_keluarga" name="hub_keluarga" placeholder="Hubungan Keluarga" class="col-xs-10 col-sm-5" value="<?= $query[0]->hub_keluarga ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="nama_keluarga"> Nama Keluarga </label>
						
								<div class="col-sm-9">
									<input type="text" id="nama_keluarga" name="nama_keluarga" placeholder="Nama Keluarga" class="col-xs-10 col-sm-5" value="<?= $query[0]->nama_keluarga ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="hr hr-24"></div>
							<h4 class="smaller lighter blue">
								Pendidikan
							</h4>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="pendidikan"> Pendidikan Terkhir </label>
						
								<div class="col-sm-3">
									<select id="pendidikan" name="pendidikan" class="form-control">
										<option value="SMU"> SMU </option>
										<option value="SMK"> SMK </option>
										<option value="D1">Diploma 1</option>
										<option value="D3">Diploma 3</option>
										<option value="S1">Sarjana</option>     
										<option value="S2">Strata 2</option>     
									</select>
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="nama_sekolah"> Nama Sekolah / Akademi / Universitas </label>
						
								<div class="col-sm-9">
									<input type="text" id="nama_sekolah" name="nama_sekolah" placeholder="Nama Sekolah" class="col-xs-10 col-sm-5" value="<?= $query[0]->nama_sekolah ?>" />
								</div>
							</div>
						
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="jurusan"> Jurusan </label>
						
								<div class="col-sm-9">
									<input type="text" id="jurusan" name="jurusan" placeholder="Jurusan" class="col-xs-10 col-sm-5" value="<?= $query[0]->jurusan ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="hr hr-24"></div>
							<h4 class="smaller lighter blue">
								Identitas Diri
							</h4>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="jenis_identitas"> Jenis Identitas Diri </label>
						
								<div class="col-sm-3">
									<select id="jenis_identitas" name="jenis_identitas" class="form-control">
										<option value="KTP"> KTP </option>
										<option value="SIM">SIM</option>
									</select>
								</div>
							</div>
							
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="no_identitas"> Nomor Kartu </label>
						
								<div class="col-sm-9">
									<input type="text" id="no_identitas" name="no_identitas" placeholder="Nomor Kartu Identitas" class="col-xs-10 col-sm-5" value="<?= $query[0]->no_identitas ?>" />
								</div>
							</div>
							<div class="hr hr-24"></div>
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="no_npwp"> Nomor NPWP </label>
						
								<div class="col-sm-9">
									<input type="text" id="no_npwp" name="no_npwp" placeholder="Nomor NPWP" class="col-xs-10 col-sm-5" value="<?= $query[0]->no_npwp ?>" />
								</div>
							</div>
							
						<!--</form>-->
					</div>
	
					<div class="tab-pane" id="datatunjangan-tab">
						<h4 class="smaller lighter green">
							<i class="icon-list"></i>
							<b>Data Tunjangan</b>
						</h4>
						<!--<form class="form-horizontal" role="form">-->

							<div class="space-4"></div>
							<h4 class="smaller lighter blue">
								Asuransi
							</h4>

							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="no_jamsostek"> No. BPJS Ketenaga Kerjaan / Jamsostek </label>
						
								<div class="col-sm-9">
									<input type="text" id="no_jamsostek" name="no_jamsostek" placeholder="Nomor BPJS Ketenagakerjaan / Jamsostek" class="col-xs-10 col-sm-5" value="<?= $query[0]->bpjs ?>" />
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="bpjs"> No. BPJS Kesehatan </label>
						
								<div class="col-sm-9">
									<input type="text" id="bpjs" name="bpjs" placeholder="Nomor BPJS Kesehatan" class="col-xs-10 col-sm-5" value="<?= $query[0]->bpjs ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="ppk_jamsostek"> Faskes I BPJS Kesehatan </label>
						
								<div class="col-sm-9">
									<input type="text" id="ppk_jamsostek" name="ppk_jamsostek" placeholder="Faskes I BPJS Kesehatan" class="col-xs-10 col-sm-5" value="<?= $query[0]->ppk_jamsostek ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="hr hr-24"></div>
							<h4 class="smaller lighter blue">
								Jaminan
							</h4>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="no_jaminan"> Nomor Ijazah </label>
						
								<div class="col-sm-9">
									<input type="text" id="no_jaminan" name="no_jaminan" placeholder="Nomor Ijazah" class="col-xs-10 col-sm-5" value="<?= $query[0]->no_jaminan ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="no_bpkb"> No BPKB</label>
						
								<div class="col-sm-9">
									<input type="text" id="no_bpkb" name="no_bpkb" placeholder="Nomor BPKB" class="col-xs-10 col-sm-5" value="<?= $query[0]->no_bpkb ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="penyimpanan_jaminan"> Tempat Penyimpanan </label>
						
								<div class="col-sm-9">
									<input type="text" id="penyimpanan_jaminan" name="penyimpanan_jaminan" placeholder="Tempat Penyimpanan" class="col-xs-10 col-sm-5" value="<?= $query[0]->penyimpanan_jaminan ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="hr hr-24"></div>
							<h4 class="smaller lighter blue">
								ID Card
							</h4>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="id_card_status"> ID Card </label>
						
								<div class="col-sm-3">
									<select id="id_card_status" name="id_card_status" class="form-control">
										<option value="ADA"> Ada </option>
										<option value="Tidak Ada"> Tidak</option>
									</select>
								</div>
							</div>
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="no_id_card"> Nomor ID Card </label>
						
								<div class="col-sm-9">
									<input type="text" id="no_id_card" name="no_id_card" placeholder="Nomor ID Card" class="col-xs-10 col-sm-5" value="<?= $query[0]->no_id_card ?>" />
								</div>
							</div>

						<!--</form>-->
					</div>
	
					<div class="tab-pane" id="datakeluarga-tab">
						<h4 class="smaller lighter green">
							<i class="icon-list"></i>
							<b>Data Keluarga</b>
						</h4>
						
						<!--<form class="form-horizontal" role="form">-->
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="nama_ibu"> Nama Ibu Kandung </label>
						
								<div class="col-sm-9">
									<input type="text" id="nama_ibu" name="nama_ibu" placeholder="Nama Ibu Kandung" class="col-xs-10 col-sm-5" value="<?= $query[0]->nama_ibu ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="status_perkawinan"> Status Perkawinan </label>
						
								<div class="col-sm-3">
									<select id="status_perkawinan" name="status_perkawinan" class="form-control">
										<option value="BK"> BK </option>
										<option value="K0">K0</option>
										<option value="K1">K1</option>
										<option value="K2">K2</option>
										<option value="K3">K3</option>
									</select>
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="no_kk"> No. Kartu Keluarga (KK) </label>
						
								<div class="col-sm-9">
									<input type="text" id="no_kk" name="no_kk" placeholder="Nomor Kartu Keluarga" class="col-xs-10 col-sm-5"  value="<?= $query[0]->no_kk ?>"/>
								</div>
							</div>

							<div class="space-4"></div>
							<div class="hr hr-24"></div>
							<h4 class="smaller lighter blue">
								Data Pasangan
							</h4>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="nama_suami_istri"> Nama </label>
						
								<div class="col-sm-9">
									<input type="text" id="nama_suami_istri" name="nama_suami_istri" placeholder="Nama Pasangan" class="col-xs-10 col-sm-5" value="<?= $query[0]->nama_suami_istri ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="no_ktp_nik_pasangan"> No. KTP / NIK </label>
						
								<div class="col-sm-9">
									<input type="text" id="no_ktp_nik_pasangan" name="no_ktp_nik_pasangan" placeholder="Nomor KTP / NIK Pasangan" class="col-xs-10 col-sm-5" value="<?= $query[0]->no_ktp_nik_pasangan ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="jenis_kelamin_si"> Jenis Kelamin </label>
						
								<div class="col-sm-3">
									<select id="jenis_kelamin_si" name="jenis_kelamin_si" class="form-control">
										<option value="Laki - laki"> Laki - laki </option>
										<option value="Perempuan">Perempuan</option>
									</select>
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="tempat_lahir_si"> Tempat Lahir </label>
						
								<div class="col-sm-9">
									<input type="text" id="tempat_lahir_si" name="tempat_lahir_si" placeholder="Tempat Lahir Suami / Istri" class="col-xs-10 col-sm-5" value="<?= $query[0]->tempat_lahir_si ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="tgl_lahir_si"> Tanggal Lahir </label>
						
								<div class="col-sm-3">
									<div class="input-group" >
										
										<input id="tgl_lahir_si" name="tgl_lahir_si" class="form-control date-picker" type="text" data-date-format="dd-mm-yyyy" value="<?php if ($query[0]->tgl_lahir_si == '1970-01-01') echo '';else echo date('d-m-Y', strtotime($query[0]->tgl_lahir_si)); ?>" >
										
										<span class="input-group-addon">
											<i class="icon-calendar bigger-110"></i>
										</span>
										
									</div>
								</div>
							</div>

							<div class="space-4"></div>
							<div class="hr hr-24"></div>
							<h4 class="smaller lighter blue">
								Data Anak 1
							</h4>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="nama_anak1"> Nama </label>
						
								<div class="col-sm-9">
									<input type="text" id="nama_anak1" name="nama_anak1" placeholder="Nama Anak 1" class="col-xs-10 col-sm-5" value="<?= $query[0]->nama_anak1 ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="no_ktp_nik_anak1"> No. KTP / NIK </label>
						
								<div class="col-sm-9">
									<input type="text" id="no_ktp_nik_anak1" name="no_ktp_nik_anak1" placeholder="Nomor KTP / NIK Anak 1" class="col-xs-10 col-sm-5" value="<?= $query[0]->no_ktp_nik_anak1 ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="jenis_kelamin_anak1"> Jenis Kelamin </label>
						
								<div class="col-sm-3">
									<select id="jenis_kelamin_anak1" name="jenis_kelamin_anak1" class="form-control">
										<option value="Laki - laki"> Laki - laki </option>
										<option value="Perempuan">Perempuan</option>
									</select>
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="tempat_lahir_anak1"> Tempat Lahir </label>
						
								<div class="col-sm-9">
									<input type="text" id="tempat_lahir_anak1" name="tempat_lahir_anak1" placeholder="Tempat Lahir Anak 1" class="col-xs-10 col-sm-5" value="<?= $query[0]->tempat_lahir_anak1 ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="tgl_lahir_anak1"> Tanggal Lahir </label>
						
								<div class="col-sm-3">
									<div class="input-group" >
										
										<input id="tgl_lahir_anak1" name="tgl_lahir_anak1" class="form-control date-picker" type="text" data-date-format="dd-mm-yyyy" value="<?php if ($query[0]->tgl_lahir_anak1 == '1970-01-01') echo '';else echo date('d-m-Y', strtotime($query[0]->tgl_lahir_anak1)); ?>" >
										
										<span class="input-group-addon">
											<i class="icon-calendar bigger-110"></i>
										</span>
										
									</div>
								</div>
							</div>

							<div class="space-4"></div>
							<div class="hr hr-24"></div>
							<h4 class="smaller lighter blue">
								Data Anak 2
							</h4>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="nama_anak2"> Nama </label>
						
								<div class="col-sm-9">
									<input type="text" id="nama_anak2" name="nama_anak2" placeholder="Nama Anak 2" class="col-xs-10 col-sm-5" value="<?= $query[0]->nama_anak2 ?>" />
								</div>
							</div>
							
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="no_ktp_nik_anak2"> No. KTP / NIK </label>
						
								<div class="col-sm-9">
									<input type="text" id="no_ktp_nik_anak2" name="no_ktp_nik_anak2" placeholder="Nomor KTP / NIK Anak 2" class="col-xs-10 col-sm-5" value="<?= $query[0]->no_ktp_nik_anak2 ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="jenis_kelamin_anak2"> Jenis Kelamin </label>
						
								<div class="col-sm-3">
									<select id="jenis_kelamin_anak2" name="jenis_kelamin_anak2" class="form-control">
										<option value="Laki - laki"> Laki - laki </option>
										<option value="Perempuan">Perempuan</option>
									</select>
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="tempat_lahir_anak2"> Tempat Lahir </label>
						
								<div class="col-sm-9">
									<input type="text" id="tempat_lahir_anak2" name="tempat_lahir_anak2" placeholder="Tempat Lahir Anak 2" class="col-xs-10 col-sm-5" value="<?= $query[0]->tempat_lahir_anak2 ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="tgl_lahir_anak2"> Tanggal Lahir </label>
						
								<div class="col-sm-3">
									<div class="input-group" >
										
										<input id="tgl_lahir_anak2" name="tgl_lahir_anak2" class="form-control date-picker" type="text" data-date-format="dd-mm-yyyy" value="<?php if ($query[0]->tgl_lahir_anak2 == '1970-01-01') echo '';else echo date('d-m-Y', strtotime($query[0]->tgl_lahir_anak2)); ?>" >
										
										<span class="input-group-addon">
											<i class="icon-calendar bigger-110"></i>
										</span>
										
									</div>
								</div>
							</div>

							<div class="space-4"></div>
							<div class="hr hr-24"></div>
							<h4 class="smaller lighter blue">
								Data Anak 3
							</h4>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="nama_anak3"> Nama </label>
						
								<div class="col-sm-9">
									<input type="text" id="nama_anak3" name="nama_anak3" placeholder="Nama" class="col-xs-10 col-sm-5" value="<?= $query[0]->nama_anak3 ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="no_ktp_nik_anak3"> No. KTP / NIK </label>
						
								<div class="col-sm-9">
									<input type="text" id="no_ktp_nik_anak3" name="no_ktp_nik_anak3" placeholder="Nomor KTP / NIK Anak 3" class="col-xs-10 col-sm-5" value="<?= $query[0]->no_ktp_nik_anak3 ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="jenis_kelamin_anak3"> Jenis Kelamin </label>
						
								<div class="col-sm-3">
									<select id="jenis_kelamin_anak3" name="jenis_kelamin_anak3" class="form-control">
										<option value="Laki - laki"> Laki - laki </option>
										<option value="Perempuan">Perempuan</option>
									</select>
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="tempat_lahir_anak3"> Tempat Lahir </label>
						
								<div class="col-sm-9">
									<input type="text" id="tempat_lahir_anak3" name="tempat_lahir_anak3" placeholder="Tempat Lahir Anak 3" class="col-xs-10 col-sm-5" value="<?= $query[0]->tempat_lahir_anak3 ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="tgl_lahir_anak3"> Tanggal Lahir </label>
						
								<div class="col-sm-3">
									<div class="input-group" >
										
										<input id="tgl_lahir_anak3" name="tgl_lahir_anak3" class="form-control date-picker" type="text" data-date-format="dd-mm-yyyy" value="<?php if ($query[0]->tgl_lahir_anak3 == '1970-01-01') echo '';else echo date('d-m-Y', strtotime($query[0]->tgl_lahir_anak3)); ?>" >
										
										<span class="input-group-addon">
											<i class="icon-calendar bigger-110"></i>
										</span>
										
									</div>
								</div>
							</div>

							<div class="space-4"></div>
							<div class="hr hr-24"></div>
							<h4 class="smaller lighter blue">
								Data Anak 4
							</h4>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="nama_anak4"> Nama </label>
						
								<div class="col-sm-9">
									<input type="text" id="nama_anak4" name="nama_anak4" placeholder="Nama Anak 4" class="col-xs-10 col-sm-5" value="<?= $query[0]->nama_anak4 ?>" />
								</div>
							</div>
							
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="no_ktp_nik_anak4"> No. KTP / NIK </label>
						
								<div class="col-sm-9">
									<input type="text" id="no_ktp_nik_anak4" name="no_ktp_nik_anak4" placeholder="Nomor KTP / NIK Anak 4" class="col-xs-10 col-sm-5" value="<?= $query[0]->no_ktp_nik_anak4 ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="jenis_kelamin_anak4"> Jenis Kelamin </label>
						
								<div class="col-sm-3">
									<select id="jenis_kelamin_anak4" name="jenis_kelamin_anak4" class="form-control">
										<option value="Laki - laki"> Laki - laki </option>
										<option value="Perempuan">Perempuan</option>
									</select>
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="tempat_lahir_anak4"> Tempat Lahir </label>
						
								<div class="col-sm-9">
									<input type="text" id="tempat_lahir_anak4" name="tempat_lahir_anak4" placeholder="Tempat Lahir Anak 4" class="col-xs-10 col-sm-5" value="<?= $query[0]->tempat_lahir_anak4 ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="tgl_lahir_anak4"> Tanggal Lahir </label>
						
								<div class="col-sm-3">
									<div class="input-group" >
										
										<input id="tgl_lahir_anak4" name="tgl_lahir_anak4" class="form-control date-picker" type="text" data-date-format="dd-mm-yyyy" value="<?php if ($query[0]->tgl_lahir_anak4 == '1970-01-01') echo '';else echo date('d-m-Y', strtotime($query[0]->tgl_lahir_anak4)); ?>" >
										
										<span class="input-group-addon">
											<i class="icon-calendar bigger-110"></i>
										</span>
										
									</div>
								</div>
							</div>

						<!--</form>-->
					</div>

					<div class="tab-pane" id="datastatuskerja-tab">
						<h4 class="smaller lighter green">
							<i class="icon-list"></i>
							<b>Data Status Kerja</b>
						</h4>
						<!--<form class="form-horizontal" role="form">-->
							<h4 class="smaller lighter blue">
								PKWT 1
							</h4>
							
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="no_pkwt1"> Nomor PKWT </label>
						
								<div class="col-sm-9">
									<input type="text" id="no_pkwt1" name="no_pkwt1" placeholder="Nomor PKWT I" class="col-xs-10 col-sm-5" value="<?= $query[0]->no_pkwt1 ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="awal_kontrak_pkwt1"> Awal Kontrak </label>
						
								<div class="col-sm-3">
									<div class="input-group" >
										
										<input id="awal_kontrak_pkwt1" name="awal_kontrak_pkwt1" class="form-control date-picker" type="text" data-date-format="dd-mm-yyyy" value="<?php if ($query[0]->awal_kontrak_pkwt1 == '1970-01-01') echo '';else echo date('d-m-Y', strtotime($query[0]->awal_kontrak_pkwt1)); ?>" >
										
										<span class="input-group-addon">
											<i class="icon-calendar bigger-110"></i>
										</span>
										
									</div>
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="akhir_kontrak_pkwt1"> AKhir Kontrak </label>
						
								<div class="col-sm-3">
									<div class="input-group" >
										
										<input id="akhir_kontrak_pkwt1" name="akhir_kontrak_pkwt1" class="form-control date-picker" type="text" data-date-format="dd-mm-yyyy" value="<?php if ($query[0]->awal_kontrak_pkwt1 == '1970-01-01') echo '';else echo date('d-m-Y', strtotime($query[0]->akhir_kontrak_pkwt1)); ?>" >
										
										<span class="input-group-addon">
											<i class="icon-calendar bigger-110"></i>
										</span>
										
									</div>
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="lama_kontrak1"> Lama Kontrak </label>
						
								<div class="col-sm-9">
									<input type="text" id="lama_kontrak1" name="lama_kontrak1" placeholder="Lama Kontrak I" class="col-xs-10 col-sm-5" value="<?= $query[0]->lama_kontrak1 ?>" />
								</div>
							</div>
							
							<div class="space-4"></div>
							<div class="hr hr-24"></div>
							<h4 class="smaller lighter blue">
								PKWT II
							</h4>
							
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="no_pkwt2"> Nomor PKWT </label>
						
								<div class="col-sm-9">
									<input type="text" id="no_pkwt2" name="no_pkwt2" placeholder="Nomor PKWT II" class="col-xs-10 col-sm-5" value="<?= $query[0]->no_pkwt2 ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="awal_kontrak_pkwt2"> Awal Kontrak </label>
						
								<div class="col-sm-3">
									<div class="input-group" >
										
										<input id="awal_kontrak_pkwt2" name="awal_kontrak_pkwt2" class="form-control date-picker" type="text" data-date-format="dd-mm-yyyy" value="<?php if ($query[0]->awal_kontrak_pkwt2 == '1970-01-01') echo '';else echo date('d-m-Y', strtotime($query[0]->awal_kontrak_pkwt2)); ?>" >
										
										<span class="input-group-addon">
											<i class="icon-calendar bigger-110"></i>
										</span>
										
									</div>
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="akhir_kontrak_pkwt2"> AKhir Kontrak </label>
						
								<div class="col-sm-3">
									<div class="input-group" >
										
										<input id="akhir_kontrak_pkwt2" name="akhir_kontrak_pkwt2" class="form-control date-picker" type="text" data-date-format="dd-mm-yyyy" value="<?php if ($query[0]->awal_kontrak_pkwt2 == '1970-01-01') echo '';else echo date('d-m-Y', strtotime($query[0]->akhir_kontrak_pkwt2)); ?>" >
										
										<span class="input-group-addon">
											<i class="icon-calendar bigger-110"></i>
										</span>
										
									</div>
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="lama_kontrak2"> Lama Kontrak </label>
						
								<div class="col-sm-9">
									<input type="text" id="lama_kontrak2" name="lama_kontrak2" placeholder="Lama Kontrak II" class="col-xs-10 col-sm-5" value="<?= $query[0]->lama_kontrak2 ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="hr hr-24"></div>
							<h4 class="smaller lighter blue">
								PKWT III
							</h4>
							
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="no_pkwt3"> Nomor PKWT </label>
						
								<div class="col-sm-9">
									<input type="text" id="no_pkwt3" name="no_pkwt3" placeholder="Nomor PKWT III" class="col-xs-10 col-sm-5" value="<?= $query[0]->no_pkwt3 ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="awal_kontrak_pkwt3"> Awal Kontrak </label>
						
								<div class="col-sm-3">
									<div class="input-group" >
										
										<input id="awal_kontrak_pkwt3" name="awal_kontrak_pkwt3" class="form-control date-picker" type="text" data-date-format="dd-mm-yyyy" value="<?php if ($query[0]->awal_kontrak_pkwt3 == '1970-01-01') echo '';else echo  date('d-m-Y', strtotime($query[0]->awal_kontrak_pkwt3)); ?>" >
										
										<span class="input-group-addon">
											<i class="icon-calendar bigger-110"></i>
										</span>
										
									</div>
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="akhir_kontrak_pkwt3"> AKhir Kontrak </label>
						
								<div class="col-sm-3">
									<div class="input-group" >
										
										<input id="akhir_kontrak_pkwt3" name="akhir_kontrak_pkwt3" class="form-control date-picker" type="text" data-date-format="dd-mm-yyyy" value="<?php if ($query[0]->awal_kontrak_pkwt3 == '1970-01-01') echo '';else echo  date('d-m-Y', strtotime($query[0]->akhir_kontrak_pkwt3)); ?>" >
										
										<span class="input-group-addon">
											<i class="icon-calendar bigger-110"></i>
										</span>
										
									</div>
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="lama_kontrak3"> Lama Kontrak </label>
						
								<div class="col-sm-9">
									<input type="text" id="lama_kontrak3" name="lama_kontrak3" placeholder="Lama Kontrak III" class="col-xs-10 col-sm-5" value="<?= $query[0]->lama_kontrak3 ?>" />
								</div>
							</div>
							
							<div class="space-4"></div>
							<div class="hr hr-24"></div>
							<h4 class="smaller lighter blue">
								Surat Peringatan (SP) I
							</h4>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="tanggal_sp1"> Tanggal SP </label>
						
								<div class="col-sm-3">
									<div class="input-group" >
										
										<input id="tanggal_sp1" name="tanggal_sp1" class="form-control date-picker" type="text" data-date-format="dd-mm-yyyy" value="<?php if ($query[0]->tanggal_sp1 == '1970-01-01') echo '';else echo  date('d-m-Y', strtotime($query[0]->tanggal_sp1)); ?>" >
										
										<span class="input-group-addon">
											<i class="icon-calendar bigger-110"></i>
										</span>
										
									</div>
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="alasan_sp1"> Alasan SP </label>
						
								<div class="col-sm-9">
									<input type="text" id="alasan_sp1" name="alasan_sp1" placeholder="Alasan SP I" class="col-xs-10 col-sm-5" value="<?= $query[0]->alasan_sp1 ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="hr hr-24"></div>
							<h4 class="smaller lighter blue">
								Surat Peringatan (SP) II
							</h4>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="tanggal_sp2"> Tanggal SP </label>
						
								<div class="col-sm-3">
									<div class="input-group" >
										
										<input id="tanggal_sp2" name="tanggal_sp2" class="form-control date-picker" type="text" data-date-format="dd-mm-yyyy" value="<?php if ($query[0]->tanggal_sp2 == '1970-01-01') echo '';else echo date('d-m-Y', strtotime($query[0]->tanggal_sp2)); ?>" >
										
										<span class="input-group-addon">
											<i class="icon-calendar bigger-110"></i>
										</span>
										
									</div>
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="alasan_sp2"> Alasan SP </label>
						
								<div class="col-sm-9">
									<input type="text" id="alasan_sp2" name="alasan_sp2" placeholder="Alasan SP II" class="col-xs-10 col-sm-5" value="<?= $query[0]->alasan_sp2 ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="hr hr-24"></div>
							<h4 class="smaller lighter blue">
								Surat Peringatan (SP) III
							</h4>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="tanggal_sp3"> Tanggal SP </label>
						
								<div class="col-sm-3">
									<div class="input-group" >
										
										<input id="tanggal_sp3" name="tanggal_sp3" class="form-control date-picker" type="text" data-date-format="dd-mm-yyyy" value="<?php if ($query[0]->tanggal_sp3 == '1970-01-01') echo '';else echo date('d-m-Y', strtotime($query[0]->tanggal_sp3)); ?>" >
										
										<span class="input-group-addon">
											<i class="icon-calendar bigger-110"></i>
										</span>
										
									</div>
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="alasan_sp3"> Alasan SP </label>
						
								<div class="col-sm-9">
									<input type="text" id="alasan_sp3" name="alasan_sp3" placeholder="Alasan SP III" class="col-xs-10 col-sm-5" value="<?= $query[0]->alasan_sp3 ?>" />
								</div>
							</div>
							<div class="hr hr-24"></div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="status_phk"> PHK </label>
						
								<div class="col-sm-3">
									<select id="status_phk" name="status_phk" class="form-control">
										<option value="YA"> Ya </option>
										<option value="Tidak"> Tidak</option>
									</select>
								</div>
							</div>

							<div class="space-4"></div>
							<div class="hr hr-24"></div>
							<h4 class="smaller lighter blue">
								Mutasi
							</h4>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="mutasi_dari"> Dari </label>
						
								<div class="col-sm-9">
									<input type="text" id="mutasi_dari" name="mutasi_dari" placeholder="Dari" class="col-xs-10 col-sm-5" value="<?= $query[0]->mutasi_dari ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="mutasi_ke"> Ke </label>
						
								<div class="col-sm-9">
									<input type="text" id="mutasi_ke" name="mutasi_ke" placeholder="Ke" class="col-xs-10 col-sm-5" value="<?= $query[0]->mutasi_ke ?>" />
								</div>
							</div>
							
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="tanggal_mutasi"> Tanggal Mutasi </label>
						
								<div class="col-sm-3">
									<div class="input-group" >
										
										<input id="tanggal_mutasi" name="tanggal_mutasi" class="form-control date-picker" type="text" data-date-format="dd-mm-yyyy" value="<?php if ($query[0]->tanggal_mutasi == '1970-01-01') echo '';else echo date('d-m-Y', strtotime($query[0]->tanggal_mutasi)); ?>" >
										
										<span class="input-group-addon">
											<i class="icon-calendar bigger-110"></i>
										</span>
										
									</div>
								</div>
							</div>

							<div class="space-4"></div>
							<div class="hr hr-24"></div>
							<h4 class="smaller lighter blue">
								Resign
							</h4>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="tanggal_berhenti"> Tanggal Berhenti </label>
						
								<div class="col-sm-3">
									<div class="input-group" >
										
										<input id="tanggal_berhenti" name="tanggal_berhenti" class="form-control date-picker" type="text" data-date-format="dd-mm-yyyy" value="<?php if ($query[0]->tanggal_berhenti == '1970-01-01') echo '';else echo date('d-m-Y', strtotime($query[0]->tanggal_berhenti)); ?>" >
										
										<span class="input-group-addon">
											<i class="icon-calendar bigger-110"></i>
										</span>
										
									</div>
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="alasan_berhenti"> Alasan Berhenti </label>
						
								<div class="col-sm-9">
									<input type="text" id="alasan_berhenti" name="alasan_berhenti" placeholder="Alasan Berhenti" class="col-xs-10 col-sm-5" value="<?= $query[0]->alasan_berhenti ?>" />
								</div>
							</div>

							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="keterangan"> Keterangan </label>
						
								<div class="col-sm-9">
									<input type="text" id="keterangan" name="keterangan" placeholder="Keterangan" class="col-xs-10 col-sm-5" value="<?= $query[0]->keterangan ?>" />
								</div>
							</div>
							
						<!--</form>-->
					</div>

					<div class="tab-pane" id="datagajikaryawan-tab">
						<h4 class="smaller lighter green">
							<i class="icon-list"></i>
							<b>Data Gaji</b>
						</h4>
						<!--<form class="form-horizontal" role="form">-->

							<div class="space-4"></div>
							<h4 class="smaller lighter blue">
								Rincian Gaji
							</h4>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="gaji_pokok"> Gaji Pokok </label>
						
								<div class="col-sm-9">
									<input type="text" id="gaji_pokok" name="gaji_pokok" placeholder="Gaji Pokok" class="col-xs-10 col-sm-5" value="<?= $query[0]->gaji_pokok ?>" />
								</div>
							</div>
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="allowance"> Allowance </label>
						
								<div class="col-sm-9">
									<input type="text" id="allowance" name="allowance" placeholder="Allowance" class="col-xs-10 col-sm-5" value="<?= $query[0]->allowance ?>" />
								</div>
							</div>
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="uang_kehadiran"> Uang Kehadiran </label>
						
								<div class="col-sm-9">
									<input type="text" id="uang_kehadiran" name="uang_kehadiran" placeholder="Uang Kehadiran" class="col-xs-10 col-sm-5" value="<?= $query[0]->uang_kehadiran ?>" />
								</div>
							</div>
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="overtime"> Overtime </label>
						
								<div class="col-sm-9">
									<input type="text" id="overtime" name="overtime" placeholder="Overtime" class="col-xs-10 col-sm-5" value="<?= $query[0]->overtime ?>" />
								</div>
							</div>
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="tunjangan_jabatan"> Tunjangan Jabatan </label>
						
								<div class="col-sm-9">
									<input type="text" id="tunjangan_jabatan" name="tunjangan_jabatan" placeholder="Tunjangan Jabatan" class="col-xs-10 col-sm-5" value="<?= $query[0]->tunjangan_jabatan ?>" />
								</div>
							</div>
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="tunjangan_transport"> Tunjangan Transport </label>
						
								<div class="col-sm-9">
									<input type="text" id="tunjangan_transport" name="tunjangan_transport" placeholder="Tunjangan Transport" class="col-xs-10 col-sm-5" value="<?= $query[0]->tunjangan_transport ?>" />
								</div>
							</div>
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="tunjangan_makan"> Tunjangan Makan </label>
						
								<div class="col-sm-9">
									<input type="text" id="tunjangan_makan" name="tunjangan_makan" placeholder="Tunjangan Makan" class="col-xs-10 col-sm-5" value="<?= $query[0]->tunjangan_makan ?>" />
								</div>
							</div>
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="tunjangan_pulsa"> Tunjangan Pulsa </label>
						
								<div class="col-sm-9">
									<input type="text" id="tunjangan_pulsa" name="tunjangan_pulsa" placeholder="Tunjangan Pulsa" class="col-xs-10 col-sm-5" value="<?= $query[0]->tunjangan_pulsa ?>" />
								</div>
							</div>
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="tunjangan_shift"> Tunjangan Shift </label>
						
								<div class="col-sm-9">
									<input type="text" id="tunjangan_shift" name="tunjangan_shift" placeholder="Tunjangan Shift" class="col-xs-10 col-sm-5" value="<?= $query[0]->tunjangan_shift ?>" />
								</div>
							</div>
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="komisi"> Komisi </label>
						
								<div class="col-sm-9">
									<input type="text" id="komisi" name="komisi" placeholder="Komisi" class="col-xs-10 col-sm-5" value="<?= $query[0]->komisi ?>" />
								</div>
							</div>
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="incentive"> Incentive </label>
						
								<div class="col-sm-9">
									<input type="text" id="incentive" name="incentive" placeholder="Incentive" class="col-xs-10 col-sm-5" value="<?= $query[0]->incentive ?>" />
								</div>
							</div>
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="bonus"> Bonus </label>
						
								<div class="col-sm-9">
									<input type="text" id="bonus" name="bonus" placeholder="Bonus" class="col-xs-10 col-sm-5" value="<?= $query[0]->bonus ?>" />
								</div>
							</div>
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="adjustment"> Adjustment </label>
						
								<div class="col-sm-9">
									<input type="text" id="adjustment" name="adjustment" placeholder="Adjustment" class="col-xs-10 col-sm-5" value="<?= $query[0]->adjustment ?>" />
								</div>
							</div>
							<div class="space-4"></div>
							<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="lain"> Lain - lain </label>
						
								<div class="col-sm-9">
									<input type="text" id="lain"  name="lain" placeholder="Lain - lain" class="col-xs-10 col-sm-5" value="<?= $query[0]->lain ?>" />
								</div>
							</div>
						<!--</form>-->
					</div>

				</div>
			</div><!-- /widget-main -->
		</div><!-- /widget-body -->
	</div><!-- /widget-box -->
</div>
<!--<form id="formsimpandata" action="<?= site_url() ?>/home/fPSaveData">-->
<div class="col-xs-12">
	<div class="clearfix form-actions">
		<div class="col-md-offset-3 col-md-9">
			<button id="simpan" class="btn btn-info" type="submit">
				<i class="icon-ok bigger-110"></i>
				Update
			</button>  
			<!--	
			&nbsp; &nbsp; &nbsp;
			<button class="btn" type="reset">
				<i class="icon-undo bigger-110"></i>
				Reset
			</button>
			-->
		</div>
	</div>
</div>
<!--</form>-->
</form>
<script type="text/javascript">
	window.jQuery || document.write("<script src='<?= base_url() ?>assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
</script>

<script type="text/javascript">
	if("ontouchend" in document) document.write("<script src='assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script src="<?= base_url() ?>assets/js/typeahead-bs2.min.js"></script>

<!-- page specific plugin scripts -->

<!--[if lte IE 8]>
  <script src="assets/js/excanvas.min.js"></script>
<![endif]-->

<script src="<?= base_url() ?>assets/js/jquery-ui-1.10.3.custom.min.js"></script>
<script src="<?= base_url() ?>assets/js/jquery.ui.touch-punch.min.js"></script>
<script src="<?= base_url() ?>assets/js/chosen.jquery.min.js"></script>
<script src="<?= base_url() ?>assets/js/fuelux/fuelux.spinner.min.js"></script>
<script src="<?= base_url() ?>assets/js/date-time/bootstrap-datepicker.min.js"></script>
<script src="<?= base_url() ?>assets/js/date-time/bootstrap-timepicker.min.js"></script>
<script src="<?= base_url() ?>assets/js/date-time/moment.min.js"></script>
<script src="<?= base_url() ?>assets/js/date-time/daterangepicker.min.js"></script>
<script src="<?= base_url() ?>assets/js/bootstrap-colorpicker.min.js"></script>
<script src="<?= base_url() ?>assets/js/jquery.knob.min.js"></script>
<script src="<?= base_url() ?>assets/js/jquery.autosize.min.js"></script>
<script src="<?= base_url() ?>assets/js/jquery.inputlimiter.1.3.1.min.js"></script>
<script src="<?= base_url() ?>assets/js/jquery.maskedinput.min.js"></script>
<script src="<?= base_url() ?>assets/js/bootstrap-tag.min.js"></script>


<!-- inline scripts related to this page -->

<script type="text/javascript">
	jQuery(function($) {
		$('#id-disable-check').on('click', function() {
			var inp = $('#form-input-readonly').get(0);
			if(inp.hasAttribute('disabled')) {
				inp.setAttribute('readonly' , 'true');
				inp.removeAttribute('disabled');
				inp.value="This text field is readonly!";
			}
			else {
				inp.setAttribute('disabled' , 'disabled');
				inp.removeAttribute('readonly');
				inp.value="This text field is disabled!";
			}
		});
	
	
		$(".chosen-select").chosen(); 
		$('#chosen-multiple-style').on('click', function(e){
			var target = $(e.target).find('input[type=radio]');
			var which = parseInt(target.val());
			if(which == 2) $('#form-field-select-4').addClass('tag-input-style');
			 else $('#form-field-select-4').removeClass('tag-input-style');
		});
	
	
		$('[data-rel=tooltip]').tooltip({container:'body'});
		$('[data-rel=popover]').popover({container:'body'});
		
		$('textarea[class*=autosize]').autosize({append: "\n"});
		$('textarea.limited').inputlimiter({
			remText: '%n character%s remaining...',
			limitText: 'max allowed : %n.'
		});
	
		$.mask.definitions['~']='[+-]';
		$('.input-mask-date').mask('99/99/9999');
		$('.input-mask-phone').mask('(999) 999-9999');
		$('.input-mask-eyescript').mask('~9.99 ~9.99 999');
		$(".input-mask-product").mask("a*-999-a999",{placeholder:" ",completed:function(){alert("You typed the following: "+this.val());}});
	
	
	
		$( "#input-size-slider" ).css('width','200px').slider({
			value:1,
			range: "min",
			min: 1,
			max: 8,
			step: 1,
			slide: function( event, ui ) {
				var sizing = ['', 'input-sm', 'input-lg', 'input-mini', 'input-small', 'input-medium', 'input-large', 'input-xlarge', 'input-xxlarge'];
				var val = parseInt(ui.value);
				$('#form-field-4').attr('class', sizing[val]).val('.'+sizing[val]);
			}
		});
	
		$( "#input-span-slider" ).slider({
			value:1,
			range: "min",
			min: 1,
			max: 12,
			step: 1,
			slide: function( event, ui ) {
				var val = parseInt(ui.value);
				$('#form-field-5').attr('class', 'col-xs-'+val).val('.col-xs-'+val);
			}
		});
		
		
		$( "#slider-range" ).css('height','200px').slider({
			orientation: "vertical",
			range: true,
			min: 0,
			max: 100,
			values: [ 17, 67 ],
			slide: function( event, ui ) {
				var val = ui.values[$(ui.handle).index()-1]+"";
	
				if(! ui.handle.firstChild ) {
					$(ui.handle).append("<div class='tooltip right in' style='display:none;left:16px;top:-6px;'><div class='tooltip-arrow'></div><div class='tooltip-inner'></div></div>");
				}
				$(ui.handle.firstChild).show().children().eq(1).text(val);
			}
		}).find('a').on('blur', function(){
			$(this.firstChild).hide();
		});
		
		$( "#slider-range-max" ).slider({
			range: "max",
			min: 1,
			max: 10,
			value: 2
		});
		
		$( "#eq > span" ).css({width:'90%', 'float':'left', margin:'15px'}).each(function() {
			// read initial values from markup and remove that
			var value = parseInt( $( this ).text(), 10 );
			$( this ).empty().slider({
				value: value,
				range: "min",
				animate: true
				
			});
		});
	
		
		$('#id-input-file-1 , #id-input-file-2').ace_file_input({
			no_file:'No File ...',
			btn_choose:'Choose',
			btn_change:'Change',
			droppable:false,
			onchange:null,
			thumbnail:false //| true | large
			//whitelist:'gif|png|jpg|jpeg'
			//blacklist:'exe|php'
			//onchange:''
			//
		});
		
		$('#id-input-file-3').ace_file_input({
			style:'well',
			btn_choose:'Drop files here or click to choose',
			btn_change:null,
			no_icon:'icon-cloud-upload',
			droppable:true,
			thumbnail:'small'//large | fit
			//,icon_remove:null//set null, to hide remove/reset button
			/**,before_change:function(files, dropped) {
				//Check an example below
				//or examples/file-upload.html
				return true;
			}*/
			/**,before_remove : function() {
				return true;
			}*/
			,
			preview_error : function(filename, error_code) {
				//name of the file that failed
				//error_code values
				//1 = 'FILE_LOAD_FAILED',
				//2 = 'IMAGE_LOAD_FAILED',
				//3 = 'THUMBNAIL_FAILED'
				//alert(error_code);
			}
	
		}).on('change', function(){
			//console.log($(this).data('ace_input_files'));
			//console.log($(this).data('ace_input_method'));
		});
		
	
		//dynamically change allowed formats by changing before_change callback function
		$('#id-file-format').removeAttr('checked').on('change', function() {
			var before_change
			var btn_choose
			var no_icon
			if(this.checked) {
				btn_choose = "Drop images here or click to choose";
				no_icon = "icon-picture";
				before_change = function(files, dropped) {
					var allowed_files = [];
					for(var i = 0 ; i < files.length; i++) {
						var file = files[i];
						if(typeof file === "string") {
							//IE8 and browsers that don't support File Object
							if(! (/\.(jpe?g|png|gif|bmp)$/i).test(file) ) return false;
						}
						else {
							var type = $.trim(file.type);
							if( ( type.length > 0 && ! (/^image\/(jpe?g|png|gif|bmp)$/i).test(type) )
									|| ( type.length == 0 && ! (/\.(jpe?g|png|gif|bmp)$/i).test(file.name) )//for android's default browser which gives an empty string for file.type
								) continue;//not an image so don't keep this file
						}
						
						allowed_files.push(file);
					}
					if(allowed_files.length == 0) return false;
	
					return allowed_files;
				}
			}
			else {
				btn_choose = "Drop files here or click to choose";
				no_icon = "icon-cloud-upload";
				before_change = function(files, dropped) {
					return files;
				}
			}
			var file_input = $('#id-input-file-3');
			file_input.ace_file_input('update_settings', {'before_change':before_change, 'btn_choose': btn_choose, 'no_icon':no_icon})
			file_input.ace_file_input('reset_input');
		});
	
	
	
	
		$('#spinner1').ace_spinner({value:0,min:0,max:200,step:10, btn_up_class:'btn-info' , btn_down_class:'btn-info'})
		.on('change', function(){
			//alert(this.value)
		});
		$('#spinner2').ace_spinner({value:0,min:0,max:10000,step:100, touch_spinner: true, icon_up:'icon-caret-up', icon_down:'icon-caret-down'});
		$('#spinner3').ace_spinner({value:0,min:-100,max:100,step:10, on_sides: true, icon_up:'icon-plus smaller-75', icon_down:'icon-minus smaller-75', btn_up_class:'btn-success' , btn_down_class:'btn-danger'});
	
	
		
		$('.date-picker').datepicker({autoclose:true}).next().on(ace.click_event, function(){
			$(this).prev().focus();
		});
		$('input[name=date-range-picker]').daterangepicker().prev().on(ace.click_event, function(){
			$(this).next().focus();
		});
		
		$('#timepicker1').timepicker({
			minuteStep: 1,
			showSeconds: true,
			showMeridian: false
		}).next().on(ace.click_event, function(){
			$(this).prev().focus();
		});
		
		$('#colorpicker1').colorpicker();
		$('#simple-colorpicker-1').ace_colorpicker();
	
		
		$(".knob").knob();
		
		
		//we could just set the data-provide="tag" of the element inside HTML, but IE8 fails!
		var tag_input = $('#form-field-tags');
		if(! ( /msie\s*(8|7|6)/.test(navigator.userAgent.toLowerCase())) ) 
		{
			tag_input.tag(
			  {
				placeholder:tag_input.attr('placeholder'),
				//enable typeahead by specifying the source array
				source: ace.variable_US_STATES,//defined in ace.js >> ace.enable_search_ahead
			  }
			);
		}
		else {
			//display a textarea for old IE, because it doesn't support this plugin or another one I tried!
			tag_input.after('<textarea id="'+tag_input.attr('id')+'" name="'+tag_input.attr('name')+'" rows="3">'+tag_input.val()+'</textarea>').remove();
			//$('#form-field-tags').autosize({append: "\n"});
		}
		
		
		
	
		/////////
		$('#modal-form input[type=file]').ace_file_input({
			style:'well',
			btn_choose:'Drop files here or click to choose',
			btn_change:null,
			no_icon:'icon-cloud-upload',
			droppable:true,
			thumbnail:'large'
		})
		
		//chosen plugin inside a modal will have a zero width because the select element is originally hidden
		//and its width cannot be determined.
		//so we set the width after modal is show
		$('#modal-form').on('shown.bs.modal', function () {
			$(this).find('.chosen-container').each(function(){
				$(this).find('a:first-child').css('width' , '210px');
				$(this).find('.chosen-drop').css('width' , '210px');
				$(this).find('.chosen-search input').css('width' , '200px');
			});
		})
		/**
		//or you can activate the chosen plugin after modal is shown
		//this way select element becomes visible with dimensions and chosen works as expected
		$('#modal-form').on('shown', function () {
			$(this).find('.modal-chosen').chosen();
		})
		*/
	
	});
</script>

<script type="text/javascript">
	document.getElementById("provinsi").value = parseInt("<?= $provinsi_edit ?>");
	document.getElementById('cabang').value="<?= $query[0]->id_cabang; ?>";
	document.getElementById('customer').value="<?= $query[0]->id_customer; ?>";
	document.getElementById('jenis_kelamin').value="<?= $query[0]->jenis_kelamin; ?>";
	document.getElementById('pendidikan').value="<?= $query[0]->pendidikan; ?>";
	document.getElementById('jenis_identitas').value="<?= $query[0]->jenis_identitas; ?>";
	document.getElementById('status_perkawinan').value="<?= $query[0]->status_perkawinan; ?>";
	document.getElementById('jenis_kelamin_si').value="<?= $query[0]->jenis_kelamin_si; ?>";
	document.getElementById('jenis_kelamin_anak1').value="<?= $query[0]->jenis_kelamin_anak1; ?>";
	document.getElementById('jenis_kelamin_anak2').value="<?= $query[0]->jenis_kelamin_anak2; ?>";
	document.getElementById('jenis_kelamin_anak3').value="<?= $query[0]->jenis_kelamin_anak3; ?>";
	document.getElementById('jenis_kelamin_anak4').value="<?= $query[0]->jenis_kelamin_anak4; ?>";
	document.getElementById('id_card_status').value="<?= $query[0]->id_card_status; ?>";
	document.getElementById('status_phk').value="<?= $query[0]->status_phk; ?>";
</script>

<script type="text/javascript">
	//update dropdown pilihan kota
	if($('#provinsi').val() != 0)
	{	
		$.post("<?php echo site_url(); ?>/user/get_kabupatenkota/"+ $('#provinsi').val(), {}, function(obj) {
        	$('#cabang').html(obj);                
    	});
	}
	$('#provinsi').change(function() {
		//alert("#aa");
		$.post("<?php echo site_url(); ?>/user/get_kabupatenkota/"+ $('#provinsi').val(), {}, function(obj) {
			$('#cabang').html(obj);
	
		});
	});
</script>

<script type="text/javascript">
	var id_cabang = parseInt(<?= $query[0]->id_cabang; ?>);
	var id_customer = parseInt(<?= $query[0]->id_customer; ?>);
	var ref_role = <?= $this->session->userdata('role') ?>;
	if(ref_role == 2)
	{
		if(id_cabang != parseInt(<?= $this->session->userdata('id_kota') ?>))
			window.location.href = siteUrl+'/home/listdataclient';
		document.getElementById("provinsi").disabled=true;
		document.getElementById("cabang").disabled=true;
	}
	if(ref_role == 5)
	{
		if(id_customer != parseInt(<?= $this->session->userdata('id_customer') ?>))
			window.location.href = siteUrl+'/home/listdataclient';
		document.getElementById("customer").disabled=true;
	}	
	else if(ref_role == 4)
	{
		document.getElementById("provinsi").value = parseInt(<?= $this->session->userdata('id_provinsi') ?>);
		document.getElementById("provinsi").disabled=true;
	}
  	$(document).ajaxStop(function () {
		document.getElementById('cabang').value="<?= $query[0]->id_cabang; ?>";
  	});
</script>